//
//  MKGroupBuyObject.m
//  YangDongXi
//
//  Created by 朱艳娇 on 15/11/26.
//  Copyright © 2015年 yangdongxi. All rights reserved.
//

#import "MKGroupBuyObject.h"
#import "MKGrantRule.h"

@implementation MKGroupBuyObject
+ (NSDictionary *)propertyAndKeyMap
{
    return @{@"startTime":@"startTime",
             @"sellerId":@"sellerId",
             @"endTime":@"endTime",
             @"sales":@"sales",
             @"lifecycle":@"lifecycle",
             @"groupBuyUid":@"group_buy_uid",
             @"stockNum":@"stock_num"
             };
}

+ (Class)classForArrayItemWithName:(NSString *)propertyName andIndex:(NSInteger)index
{
    if ([propertyName isEqualToString:@"grantRule"])
    {
        return [MKGrantRule class];
    }
    return nil;
}
@end
